/*
 * @Author: shawnXiao
 * @Date: 2021-12-18 19:54:33
 * @LastEditTime: 2021-12-19 21:06:28
 * @FilePath: /vue3-vite2-ts-antdv/src/main.ts
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store'

import { setupAntd } from './plugins/setupAntd'

import "ant-design-vue/lib/message/style/index.less";
import "ant-design-vue/lib/notification/style/index.less";

// 权限拦截器
import './permission'

const app = createApp(App)

// 注册全局ant-design-vue组件
import.meta.env.MODE === 'production' && setupAntd(app) // 调用组件

app.use(router).use(store)

app.mount('#app')
